package fem2.element.crack_sda;

import inf.jlinalg.IMatrix;
import fem2.Element;
import fem2.MeshPart;

public class ConstantJumpSDAElementForValidation extends ConstantJumpSDAElement {

	private ConstantJumpSDAElement ce;

	public ConstantJumpSDAElementForValidation(Element e) {
		super(((ConstantJumpSDAElement) e).getMeshPart(), ((ConstantJumpSDAElement) e)
				.getMaterialModel(), ((ConstantJumpSDAElement) e).getCohesiveLaw());
		ce = ((ConstantJumpSDAElement) e);
	}

	@Override
	protected boolean checkOnsetCriteria() {
		return true;
	}

	@Override
	protected void computeEnhancedStrainOperator(MeshPart mp, IMatrix g, double... xi) {
		ce.computeEnhancedStrainOperator(mp, g, xi);
	}

	@Override
	protected void computeProjectionOperator(MeshPart mp, IMatrix g, double... xi) {
		ce.computeProjectionOperator(mp, g, xi);
	}

}
